<template>
<div class="page">
  <div class="left">
    <img :src="Img" alt="商品图片">
  </div>
  <div class="right">
    <div class="info">{{cartdata.goods_name}}</div>
    <div class="info"> <span style="color: red;font-weight: 600">￥</span> {{cartdata.goods_price}}</div>
    <div class="info">X {{cartdata.goods_num}}</div>
  </div>
</div>
</template>

<script>
export default {
  name: "OrderListCard",
  props:['cartdata'],
  data(){
    return{
      Img:this.$baseUrl+this.cartdata.goods_img
    }
  },
  created() {

  }
}
</script>

<style scoped lang="less">
.page{
  height: 60px;
  background-color: #ddd;
  display: flex;
  flex-direction: row;

  .left{
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    img{
      height: 60px;
      border-radius: 5px;
    }
  }
  .right{
    padding-left: 15px;
    flex: 1;
    display: flex;
    flex-direction:column;
    justify-content: space-around;
  }
}
</style>
